home *** CD-ROM | disk | FTP | other *** search
-
- REM grid draw routine
- REM this routine will draw an x,y grid anywhere on the screen
-
- REM To use, include this segment, select the foreground color with
- REM the PEN command, and initialize these variables:
-
- REM grdl to upper left x coordinate
- REM grdt to upper left y coordinate
- REM grdw to width of entire grid
- REM grdh to height of entire grid
- REM grdx number of x divisions
- REM grdy number of y divisions
-
- REM then do a GOSUB 9200. Variables used are those mentioned above,
- REM and grdc,grdv Only line number used is 9200.
-
-
- rem grid draw routine
- 9200 for grdc=0 to grdx
- grdv=grdl+(grdw*grdc)/grdx
- move grdv,grdt:draw grdv,grdt+grdh
- next
- for grdc=0 to grdy
- grdv=grdt+(grdh*grdc)/grdy
- move grdl,grdv:draw grdl+grdw,grdv
- next
- return
-
-